package com.carful.wx.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author ad
 * Date 2024/7/12 9:38
 */

@Getter
@Configuration
@ConfigurationProperties(prefix = "wx.h5")
public class WxH5Config {

    private String oauth2_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={redirect_uri}&response_type=code&scope={scope}&state={state}#wechat_redirect";

    private String appid = "";

    private String secret = "";

    private String scope = "";

    private String redirect_uri = "";

    private String access_token_url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={appid}&secret={secret}&code={code}&grant_type=authorization_code";

}
